feat(ai-plugin): integrate AI assistant with gRPC architecture and MVP implementation#815
Closed
KariHall619 wants to merge 2 commits intoLinuxSuRen:masterfrom
Closed
feat(ai-plugin): integrate AI assistant with gRPC architecture and MVP implementation#815KariHall619 wants to merge 2 commits intoLinuxSuRen:masterfrom
KariHall619 wants to merge 2 commits intoLinuxSuRen:masterfrom
Conversation
LinuxSuRen
requested changes
Aug 25, 2025
Owner
There was a problem hiding this comment.
为什么会生成github.com/linuxsuren/api-testing这个目录呢?
LinuxSuRen
reviewed
Aug 25, 2025
Owner
There was a problem hiding this comment.
我看你实现的是一个独立的页面,请参考https://github.com/LinuxSuRen/atest-ext-store-database 这个项目把前端部分迁移到插件里
…ecture - Added AI plugin configuration in extension.yaml with correct naming (atest-ext-ai) - Implemented gRPC client wrapper (pkg/server/ai_client.go) for AI service communication - Created AI service interface with graceful degradation to template responses - Integrated AI assistant UI component in frontend with chat interface - Added AI assistant entry point in StoreManager for seamless user access - Fixed Vue compilation errors in AIAssistant.vue component - Implemented natural language to SQL/test case conversion interface - Added comprehensive error handling and fallback mechanisms Task: AI Plugin Integration MVP Phase: MVP
1b2a037 to
ec8961d
Compare
…rchitecture - Remove AIAssistant.vue from main project frontend - Clean up AI assistant UI integration from StoreManager.vue - Maintain backend AI client infrastructure (ai_client.go, ai_manager.go) - Preserve gRPC client implementation for AI plugin communication - Update project architecture to separate frontend/backend concerns Breaking Changes: - Frontend AI assistant interface removed from main project - AI plugin frontend code should be developed independently in plugin repository Technical Details: - Deleted: console/atest-ui/src/views/AIAssistant.vue - Modified: Removed AI assistant entry points from StoreManager.vue - Preserved: pkg/server/ai_client.go (gRPC client implementation) - Preserved: pkg/server/ai_manager.go (AI service management) - Maintained: Backend API architecture for AI plugin integration Architecture Impact: - Frontend code separation: AI plugin UI should be in plugin repo's ui/ directory - Backend integration maintained: gRPC communication layer preserved - Resource embedding: AI plugin will serve frontend assets via gRPC endpoints - Build process: Frontend assets will be embedded in plugin binary - Refactor the AI client and manager code, replacing the custom AIRequest and AIResponse types with those generated by protobuf. Modified request processing logic to accommodate the new type structure and updated metadata field types. Also fixed formatting issues in the code Next Steps: - AI plugin repository should implement independent frontend in ui/ directory - Frontend assets will be served via GetPageOfJS() and GetPageOfCSS() gRPC methods - Main project will consume AI frontend through plugin's resource endpoints fix(protobuf): Resolve Git conflicts in .pb.go files by regenerating from .proto sources feat(tools): Add protoc-gen-go and protoc-gen-go-grpc tool dependencies - Added go.mod, go.sum and pin.go files for protoc-gen-go tool - Added go.mod, go.sum and pin.go files for protoc-gen-go-grpc tool - These tools are required for generating protobuf Go code - Following the same pattern as other tools like golangci-lint Task: Tool dependency management Phase: Infrastructure
ec8961d to
f004b33
Compare
|
Owner
|
CI构建错误,你也需要关注的 |
Contributor
Author
|
This PR submission record is too cluttered and not conducive to subsequent maintenance and tracking. Refreshed and available, traceable production-grade code is submitted within 1-2 days. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What type of PR is this?
/kind feature
This PR introduces a new AI assistant plugin integration with MVP implementation.
What this PR does / why we need it :
This PR integrates an AI assistant plugin into the API Testing project, enabling natural language to SQL/test case conversion through a chat interface. The implementation follows the existing plugin architecture pattern and provides:
Key Features:
Technical Implementation:
Testing:
Which issue(s) this PR fixes : /
Additional Notes: